package com.example.chatrecommendation.bean.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 智能体
 * @Date 2024-05-19 11:07:47
 * @author Jasmine-drs
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("agent")
@ApiModel(value="Agent对象", description="智能体")
public class Agent implements Serializable {

    @NotNull(message="[]不能为空")
    @ApiModelProperty("")
    private Integer id;

    @NotNull(message="[创建人]不能为空")
    @ApiModelProperty("创建人")
    private Integer studentAccount;

    @NotBlank(message="[智能体名称]不能为空")
    @Size(max= 255,message="编码长度不能超过255")
    @ApiModelProperty("智能体名称")
    private String name;

    @Size(max= 255,message="编码长度不能超过255")
    @ApiModelProperty("智能体头像地址")
    private String imageUrl;

    @Size(max= -1,message="编码长度不能超过-1")
    @ApiModelProperty("智能体描述")
    private String description;

    @Size(max= -1,message="编码长度不能超过-1")
    @ApiModelProperty("配置信息")
    private String config;

    @Size(max= 255,message="编码长度不能超过255")
    @ApiModelProperty("推荐问题1")
    private String recommend1;

    @Size(max= 255,message="编码长度不能超过255")
    @ApiModelProperty("")
    private String recommend2;

    @Size(max= 255,message="编码长度不能超过255")
    @ApiModelProperty("")
    private String recommend3;

    @NotNull(message="[]不能为空")
    @ApiModelProperty("")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @NotNull(message="[]不能为空")
    @ApiModelProperty("")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

}
